@csrf
<div class="layui-row">
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label for="encode" class="layui-form-label">编号</label>
            <div class="layui-input-block">
                <input type="text" name="encode" value="{{$module->encode??''}}" readonly="true" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="parent_id" class="layui-form-label">上级</label>
            <div class="layui-input-block">
                <input type="text" id="parent_id" name="parent_id" lay-filter="parent_id" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="target" class="layui-form-label">目标</label>
            <div class="layui-input-block">
                <select name="target">
                    <option value=""></option>
                    <option value="expand" {{$module->target=='expand'?'selected':''}}>expand</option>
                    <option value="iframe" {{$module->target=='iframe'?'selected':''}}>iframe</option>
                    <option value="open" {{$module->target=='open'?'selected':''}}>open</option>
                    <option value="href" {{$module->target=='href'?'selected':''}}>href</option>
                    <option value="blank" {{$module->target=='blank'?'selected':''}}>blank</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label for="full_name" class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input class="layui-input" type="text" name="full_name"
                    value="{{$module->full_name??old('full_name')}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="icon" class="layui-form-label">图标</label>
            <div class="layui-input-block">
                <input type="text" name="icon" class="layui-input" value="{{$module->icon??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="sort_code" class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" name="sort_code" class="layui-input" value="{{$module->sort_code??''}}">
            </div>
        </div>
    </div>
</div>
<div class="layui-row" style="margin-top:15px">
    <div class="layui-form-item">
        <label for="url_address" class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text" name="url_address" class="layui-input" value="{{$module->url_address??''}}">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="params" class="layui-form-label">参数</label>
        <div class="layui-input-block">
            <div style="margin-bottom:5px;float:right">
                <a href="javascript:void(0);" onClick="createParam()" class="layui-btn layui-btn-sm">添加</a>
            </div>
            <div style="clear:both">
                <table id="params_table" class="layui-hide" lay-filter="dataTable">
                    <script type="text/html" id="options">
                        <a class="layui-btn layui-btn-sm" lay-event="edit">编辑</a>
                        <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="del">删除</a>

                    </script>
                </table>
            </div>
            <input type="hidden" name="params" id="params" value="{{$module->params??''}}">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="" class="layui-form-label">选项</label>
        <div class="layui-input-block">
            <input type="hidden" name="is_menu" value="0">
            <input type="hidden" name="is_public" value="0">
            <input type="hidden" name="expand_enable" value="0">
            <input type="hidden" name="status" value="0">
            <input type="checkbox" name="is_menu" title="菜单" lay-skin="primary" {{$module->is_menu=='1'?'checked':''}}
                value="1">
            <input type="checkbox" name="is_public" title="公共" lay-skin="primary"
                {{$module->is_public=='1'?'checked':''}} value="1">
            <input type="checkbox" name="expand_enable" title="展开" lay-skin="primary"
                {{$module->expand_enable=='1'?'checked':''}} value="1">
            <input type="checkbox" name="status" title="有效" lay-skin="primary" {{$module->status=='1'?'checked':''}}
                value="1">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="description" class="layui-form-label">描述</label>
        <div class="layui-input-block">
            <textarea name="description" class="layui-textarea">{{$module->description??''}}</textarea>
        </div>
    </div>

</div>
